<?php
       $id = $_GET['id'];

       // 连接数据库
       include './conn.php';
      $sql = "SELECT img_url FROM t_articles  ORDER BY id DESC LIMIT $id, 10";
        
      // 生成sql
    //   $sql = "SELECT id, title, author, podcast, duration, play_time, img_url, content FROM t_articles ORDER BY id DESC LIMIT $id, 10";

      // 执行sql
      $result = $mysqli->query($sql);
      
      // 处理result
      while($row = Mysqli_fetch_assoc($result)){
        $articles[] = $row; // 将$row添加到$articles中
      }
       echo(json_encode($articles));